# conding utf-8
from selenium.webdriver.common.by import By

# 左侧菜单栏
left_menu_sys = By.XPATH, "//li[3]//div//span//span[text()='采购管理']"
left_menu = By.XPATH, "//li[3]//ul//li[2]//a"

# 关闭使用帮助弹窗
helpups = By.XPATH, "//div[6]/div/div[1]/a"

#查询
invoicesid = By.CSS_SELECTOR, 'input[placeholder="请输入单据编号"]'
invoicesid_expected = By.XPATH, "//td[text()='CGRK00000001006[订]']"
invoicesid_expected1 = By.XPATH, "//p[text()='暂无数据']"
good_send = By.CSS_SELECTOR, 'input[placeholder="请输入条码、名称、规格、型号、颜色、扩展信息"]'
time_text=By.CSS_SELECTOR, 'input[placeholder="开始时间"]'
time_star= By.XPATH, "//td[@role='gridcell' and @title='2024年12月1日']"
time_end= By.XPATH, "//td[@role='gridcell' and @title='2025年1月31日']"
vendor=By.XPATH,"//form/div/div[4]/div/div[2]/div"#供应商
depotname=By.XPATH,"//form/div/div[5]/div/div[2]/div"#仓库名称
operatortext=By.XPATH,"//form/div/div[6]/div/div[2]/div"#操作员
relationinvoices=By.XPATH,"//form/div/div[7]/div/div[2]/div/span/input"#关联单据
settleduser=By.XPATH,"//form/div/div[8]/div/div[2]/div"#结算账户
itadebt=By.XPATH,"//form/div/div[9]/div/div[2]/div"#有无欠款
invoicesstatus=By.XPATH,"//form/div/div[10]/div/div[2]/div"#单据状态
remarkstext=By.CSS_SELECTOR, 'input[placeholder="请输入单据备注"]'
find_btn = By.XPATH, "//button[span[text()='查 询']]"
find_btn1= By.XPATH, "//button[span[text()='重 置']]"

#新增
insert_btn= By.XPATH, "//button[span[text()='新增']]"
insert_member=By.XPATH,"//div[@id='organId']/div/div/div"
# close_btn=By.XPATH,"//a[text()='×']"

# 关闭提示
close_tips_btn = By.CSS_SELECTOR,".introjs-skipbutton"
pickgood=By.XPATH,"//button[@data-v-137fc6ae]"
pickgood1=By.XPATH,"(//button[@data-v-137fc6ae])[2]"
insert_good_table=By.CSS_SELECTOR,'body>div:last-of-type>div.ant-modal-root [data-row-key="36"]'
insert_good_table1=By.CSS_SELECTOR,'body>div:last-of-type>div.ant-modal-root [data-row-key="37"]'
insertguanlian=By.XPATH,"//span[@class='ant-input-suffix']"
guanlian_check=By.XPATH,"(//tbody[@class='ant-table-tbody'])[2]/tr[1]/td/span"
insert_qr_btn= By.XPATH, "//button[span[text()='确 定']]"
insert_qr_btn1= By.XPATH, "(//button[span[text()='确 定']])[2]"
insert_qr_btn2= By.XPATH, "(//button[span[text()='确 定']])[3]"
insert_bc_btn= By.XPATH, "//button[span[text()='保 存']]"
insert_crh_btn= By.XPATH, "//button[span[text()='插入行']]"
# 展开
btn_unfold = By.XPATH, "//a[contains(text(), '展开')]"
#查看
ck_btn=By.XPATH,"//a[text()='查看']"
qx_ck_btn= By.XPATH, "//button[span[text()='取 消']]"
view_title=By.XPATH,"//div[text()='采购入库-详情']"
#编辑
bj_btn=By.XPATH,"//a[text()='编辑']"
bj_input=By.XPATH,"(//input[@autocomplete='off'])[4]"
bj_quantity=By.XPATH,"(//input[@data-v-5c0b4bc0 and @data-input-number='true'])[1]"
bj_dy=By.XPATH,"//tbody[@class='ant-table-tbody']/tr[1]/td[8][text()=3]"
get_bh=By.XPATH,"//input[@data-v-0408eedb and @placeholder='请输入单据编号']"
get_table_bh=By.XPATH,"//tbody[@class='ant-table-tbody']/tr[1]/td[@class='ant-table-row-cell-break-word'][2]"
#复制
fz_btn=By.XPATH,"//a[text()='复制']"
#删除
sc_btn=By.XPATH,"//a[text()='删除']"
#批量操作按钮
plcz_btn=By.XPATH,"//button[span[text()='批量操作']]"
#批量操作
pl_delete=By.XPATH,"//ul[@data-v-23e584f4]/li[1]"
pl_audit=By.XPATH,"//ul[@data-v-23e584f4]/li[2]"
pl_anti_audit=By.XPATH,"//ul[@data-v-23e584f4]/li[3]"
#表格数据
table_check=By.XPATH,"(//span[@class='ant-checkbox'])[2]"
table_check1=By.XPATH,"(//span[@class='ant-checkbox'])[3]"
insert_good_find=By.XPATH,"//input[@data-v-0f93a7a2 and @placeholder='条码、名称、规格、型号、颜色']"
insert_quantity=By.CSS_SELECTOR,"#billModal .tbody .tr:nth-child(1)>div:nth-child(18) input"
insert_quantity1=By.CSS_SELECTOR,"#billModal .tbody .tr:nth-child(1)>div:nth-child(18) input"
insert_ckcheck=By.XPATH,"//div[@data-v-5c0b4bc0 and @class='ant-select ant-select-enabled ant-select-allow-clear']/div/div"
quantity_tips=By.XPATH,"//div[@class='ant-tooltip ant-tooltip-placement-top']"
cancel = By.XPATH, "//button[span[text()='取 消']]"
tishi_text = By.XPATH, "//div[text()='数量不能为空']"




